﻿<%@ Page Language="C#" MasterPageFile="~/VN/Layout_2_Col.Master" AutoEventWireup="true" CodeBehind="TimKiemCVOnline.aspx.cs" Inherits="TuyenDungViecLam.NhaTuyenDung.TimKiemCVOnline" Title="Tim Kiem Ung Vien" %>
<%@ Register Src="../User_control_VN/Login_NTD.ascx" TagName="Login_NTD" TagPrefix="uc1" %>
<%@ Register Src="../User_control_VN/Menu_NTD.ascx" TagName="Menu_NTD" TagPrefix="uc2" %>
<%@ Register src="../User_control_VN/TimKiemCVonline.ascx" tagname="TimKiemCVonline" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <uc1:Login_NTD ID="Login_NTD1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <uc2:Menu_NTD ID="Menu_NTD1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <uc3:TimKiemCVonline ID="TimKiemCVonline1" runat="server" />
    <div class="art-Block">
    <div class="art-Block-body">
        <div class="art-BlockHeader">
            <div class="art-header-tag-icon">
                <div class="t">
                    Kết quả tìm kiếm</div>
            </div>
        </div>
        <div class="art-BlockContent">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
                BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                CellPadding="2" ForeColor="Black" GridLines="None">
                <Columns>
                    <asp:BoundField DataField="HoTen" HeaderText="Họ tên" SortExpression="HoTen"/>
                    <asp:BoundField DataField="NgaySinh" HeaderText="Ngày sinh" 
                        SortExpression="NgaySinh" />
                    <asp:BoundField DataField="DiaChi" HeaderText="Địa chỉ" 
                        SortExpression="DiaChi" />
                    <asp:BoundField DataField="TrinhDo" HeaderText="Trình độ" 
                        SortExpression="TrinhDo" />
                    <asp:BoundField DataField="NamKinhNghiem" HeaderText="Kinh nghiệm" 
                        SortExpression="NamKinhNghiem" />
                    <asp:BoundField DataField="MucLuong" HeaderText="Mức lương" 
                        SortExpression="MucLuong" />
                    <asp:BoundField DataField="ViTriMongMuon" HeaderText="Vị trí mong muốn" 
                        SortExpression="ViTriMongMuon" />
                    <asp:BoundField DataField="GioiThieu" HeaderText="Giới thiệu" 
                        SortExpression="GioiThieu" />
                </Columns>
                <FooterStyle BackColor="Tan" />
                <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                    HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <HeaderStyle BackColor="Tan" Font-Bold="True" />
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
            </asp:GridView>               
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:TDTVConnectionString %>" 
                SelectCommand="SELECT DISTINCT [HoTen], [NgaySinh], [DiaChi], [TrinhDo], [NamKinhNghiem], [MucLuong], [ViTriMongMuon], [GioiThieu] FROM [CVONLINE] WHERE (([ViTriMongMuon] LIKE '%' + @ViTriMongMuon + '%') OR ([NamKinhNghiem] = @NamKinhNghiem) OR (([TrinhDo] = @TrinhDo) OR ([MucLuong] &gt;= @MucLuong) AND ([MucLuong] &lt;= @MucLuong2)))">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ViTriMongMuon" QueryStringField="TuKhoa" 
                        Type="String" />
                    <asp:QueryStringParameter Name="NamKinhNghiem" QueryStringField="NamKinhNghiem" 
                        Type="String" />
                    <asp:QueryStringParameter Name="TrinhDo" QueryStringField="TrinhDo" 
                        Type="String" />
                    <asp:QueryStringParameter Name="MucLuong" QueryStringField="MucLuong1" 
                        Type="Decimal" />
                    <asp:QueryStringParameter Name="MucLuong2" QueryStringField="MucLuong2" 
                        Type="Decimal" />
                </SelectParameters>
            </asp:SqlDataSource>
        </div>
    </div>
</div>
</asp:Content>
